export function useColumns() {
  const columns = [
    {
      label: "ID",
      prop: "aqiFeedback.fbId",
      width: "60"
    },
    {
      label: "反馈AQI",
      prop: "aqiFeedback.fbAqiLevel",
      width: "140",
      cellRenderer: ({ row }) => (
        <el-tag color={row.aqiFeedback.remarks.aqiColor} effect="dark">
          {row.aqiFeedback.remarks.remarks}{" "}
          {row.aqiFeedback.remarks.aqiLevelDes}
        </el-tag>
      )
    },
    {
      label: "反馈时间",
      prop: "aqiFeedback.fbTime",
      width: "180"
    },
    {
      label: "反馈地址",
      prop: "aqiFeedback.fbAddress",
      width: "400"
    },
    {
      label: "反馈者",
      prop: "monitor.monName",
      width: "120"
    },
    {
      label: "反馈状态",
      prop: "aqiFeedback.fbAssignState",
      width: "130",
      cellRenderer: ({ row }) => (
        <div>
          <el-tag
            v-show={row.aqiFeedback.fbAssignState === 1}
            type="success"
            effect="dark"
          >
            已指派
          </el-tag>
          <el-tag
            v-show={row.aqiFeedback.fbAssignState === 0}
            type="danger"
            effect="dark"
          >
            未指派
          </el-tag>
        </div>
      )
    },
    {
      label: "操作",
      width: "120",
      fixed: "right",
      slot: "operation"
    }
  ];
  return {
    columns
  };
}
